import { ElNotification } from "element-plus";
import {ElMessageBox} from "element-plus";
export function toast(message, type = "success") {
  ElNotification({
    message,
    type,
    duration: 2000,
  });
}

export function tips(text,type="success"){
  return ElMessageBox.confirm(text,"",{
    confirmButtonText:"确认",
    cancelButtonText:"取消",
    type,
  })
}
